import request from "@/axios/request";
import url from "@/axios/url";
const { dataUrl, adminUrl } = url();
// 导出url
export const exportUrl = `${dataUrl}baseGoods/export`;
// 分页查询
export function getList(params = {}) {
  return request({
    url: `${adminUrl}baseGoods`,
    method: "get",
    params,
  });
} // 查询物料类型 数据字典：成品、半成品、原材料列表
export function getGoodsTypeKeyList() {
  return request({
    url: `${adminUrl}dict/type/material_type`,
    method: "get",
  });
}
// 查询制造方式编码--数据字典列表
export function getManufactureMethodValueList() {
  return request({
    url: `${adminUrl}dict/type/manufacture_method`,
    method: "get",
  });
} // 查询系列 列表
export function getSeriesCodeList(data = {}) {
  return request({
    url: `${adminUrl}baseSeries/list`,
    method: "get",
    data,
  });
}
